package com.ray.udp_send;

import java.io.*;
import java.net.*;
import java.util.LinkedList;
import java.util.Queue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import javax.media.Player;
import com.ray.basic.*;
import com.ray.udp_listen.myDisplay;
import com.ray.udp_listen.myGather;
import com.ray.udp_listen.myReceive;


public class UdpSend {
    public static void main(String[] args) throws Exception {
        String server =//"127.0.0.1";
        		args[0];
        int servPort =//9977;
        		Integer.parseInt(args[1]);
//        System.out.println("UdpSend::"+server+" "+servPort);
        DatagramSocket ds = new DatagramSocket();
        
//        myCamera temp_aCamera=new myCamera();
//        Thread myCamera= new Thread(temp_aCamera);
//        myCamera.start();
        
        myAVI temp_aAVI=new myAVI();
        Thread myAVI= new Thread(temp_aAVI);
        myAVI.start();
        
        ReadImage temp_read=new ReadImage();
        Thread myRead= new Thread(temp_read);
        myRead.start();
        
        mySplit temp_split=new mySplit();
        Thread split= new Thread(temp_split);
        split.start();
        
        mySend temp_send=new mySend(ds, server, servPort);
        Thread send= new Thread(temp_send);
        send.start();
    }
}

